//
//  StoreViewController.m
//  SugarPile
//
//  Created by Charlie. on 16/1/18.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "StoreViewController.h"

@interface StoreViewController ()
@property (nonatomic, retain) UIWebView *store;
@end

@implementation StoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
   self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fanhui"] style:UIBarButtonItemStylePlain target:self action:@selector(xiangqing)] autorelease];
   self.store = [[UIWebView alloc] initWithFrame:self.view.bounds];
    self.navigationController.navigationBar.tintColor = [UIColor redColor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ];
    _store.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:_store];
    
    [_store loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://buy.duitang.com/buy/youliao/?from=app&_urlopentype=page&__urlopentype=pageweb"]]];
    
    
    
    [_store release];
}
-(void)xiangqing
{
    [self.navigationController popViewControllerAnimated:YES];
    [_store loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://buy.duitang.com/buy/youliao/?from=app&_urlopentype=page&__urlopentype=pageweb"]]];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
